Avoid division by zero

In some cases where diff between max and min can be zero (e.g. when used with mutable collections where items are deleted), the library will attempt a division by zero, resulting in `this.percentages` to contain `NaN` or `Infinity` values. This adds a check, defaulting to `[0, 0, 0]`.