Fixed NPE when there was no next state (transition)