fixes ZEN-7474; validate state of event_summary table on ZEP startup and before optimization; reviewed by cphillips