Don't infinite loop if offsetNum starts at 0

I ran into this where offsetNum came in 0 and the lib would basically loop forever.  This may be something to change for all of the `=== 0` checks.  If so, happy to resubmit.