MDL-40697 core_grades: trigger the grade_created/updated events