Avoid infinity loop & division by zero

This is of course to handle bad input parameters for
`isInIncrementsOfRanges`.

This fix #64
Merge pull request #67 from j0k3r/fix-infinity-loop

Avoid infinity loop & division by zero