Minor code refactoring around EventList::AddEvent().