Fixes to entity created, version created and delete event handlers.