Fixed NullPointerException when CircuitAntBehavior.getState is called before setState.