Thwarted possible infinite loop when a level contains no scheduled actions