Fix for beforeCommandExec event firing ret val handling.
Corrected value which indicates canceled event.
If we check for event canceling we should use strict equal operator checking.