Check handler exists

Check that an event handler exists before calling it, in case the cache is out of date