fixed issue with editing events that have no end date

Signed-off-by: Chris Jones <chris@jonezy.org>