Fixes crash when deleting one of the dates when editing event