Fixes runtime caused by missing check in sleeper code
Merge pull request #6653 from GinjaNinja32/sleeper

Fixes runtime caused by missing check in sleeper code