Fix possiblity of passing infinity to setTimeout. Fixes #11.