Fix canTryEvent for argument=anyStateEvent.