lib: fix undefined timeout regression
63644dd1 introduced a regression caused by everyone's favourite
JavaScript feature: undefined < 0 === undefined >= 0
.
Add a case to the existing tests to cover this scenario and then add the check for undefined that makes the test pass.
@indutny @jasnell this should fix at least one of the v4.2.0 regressions.