Fix corner case in calculation of trimmed mean.