workspace: prevent dangling pointers in output order list
An output can be still enabled but also scheduled for deletion
(cherry picked from commit 062f092f)
An output can be still enabled but also scheduled for deletion
(cherry picked from commit 062f092f)