Adding a missing equality check for exception handlers.

We weren't checking the value of isBeforeHandler() before.