engine: A check for possible NPE in RemoveExternalEventCommand.canDoAction

Added a check for possible NPE in RemoveExternalEventCommand.canDoAction
method.

Change-Id: I64014addc38828506d6d04c63dabdbab555f1481
Signed-off-by: Asaf Shakarchi <asaf@redhat.com>