Fixed multi-engine issue.

The event listener for crate_before_execute should only modify the query if the event dialect is 'CrateDialect'.