Prevent moving workflow state programmatically if it is not added as a transition.