MDL-38827 core_grade: display lowest grade if 'Aggregate only non-empty grades' is not set and the category grade is empty