MDL-46576 core_grade: Fixed up error with weighting not being set.