Fix issue with sequences that end waiting

A sequence that ended waiting would be removed because the orchestrator
would not see any functions.