Fix calculation of percentiles when there is only 1 sample
Fix calculation of percentiles when there is only 1 sample

Otherwise negative indexes cause unhandled panics.

pavel-paulau/perfdb,pavel-paulau/perfkeeper,pavel-paulau/perfdb