The perf plugin has the ability to draw trend graphs with max and min values. That has broken recently for unknown reasons. It's failing trying to draw the max and min on an array of length 1. It seems reasonable to detect and avoid the situation.
I suggest we change the check on line 610 to also check that the length of the array is greater than 1. That should avoid the problem we are seeing in PERF-836.