[[ Bug 12361 ]] Make sure the waittime we pass to handle() in Windows is non-negative.
Merge branch 'bugfix-12361' into develop