This avoids an issue where deleting an event inside the handler of a different event puts the event iteration in an invalid state.