Bugfix: Use _WorkState instead of WorkState

"parent.state != WorkState.DONE" ended up never evaluating as true.