Prevented an endless loop crash related to EVENT_TASK_STAGE_COMPLETE.