Give setTimeout a timeout

Otherwise, the MockClock in the dirty.htm test gets messed up because it has an
event scheduled for NaN and stops running any events, causing the test to fail.