[BUGFIX] Fix PHP error in data handler hooks

Since we need the event object in the data handler to generate the
SLUG we load all events in the cache before passing them to the
indexer.