MDL-18772 fixed aut oupdating of grademax for SUM aggregation type