Handle NPE in state machine executor.