Issue #2851567 by mcdruid, JordanMagnuson, botris: rules_init() and cache rebuilding are broken when no events are configured