Fix regression: In case of a transition failure, the currentState wasn't getting its right value back.