Fix bug in run_on_failed_transition after failed validation