add some ugly hacks to CachedEventSummary.summarize_all_events
to handle bad data.