fixes bug 909365 - Editing is broken because of events that don't have an end date