Add documented conditional statements to stats_per_label() to account for scoreatpercentile() error.

If the weights are all smaller than the precision, then X will disappear,
so in this case some of the statistical measures are set to zero.