Fix parseInt('0') -> NaN

Fixes #200
Merge pull request #203 from tessel/km-nan

Fix parseInt('0') -> NaN