Fix list index out of range in _set_date from calendar.event.