Changed workflow_state condition to != deleted

There could be other states other than 'accepted'