MDL-46819 core_grades: Negative weights are changed to 0