Check handler exists

Check event handler exists before calling it, in case the cache is out of date. Fixes #442