MDL-40697 core_grades: trigger the grade_deleted event