Added compatibility check of an action with a context done before applying the action under the context.