#283867 backported fix from rules: tell the user what's up when an event is missing and avoid php errors