MDL-42425 modify mod_assign_save_grade to process advanced grading data