fixes #2051 Editing an Event from a page throws Null Pointer Exception