MDL-47064 Grades: Fix the contributed weights column for students and teachers.

Part of: MDL-46576
MDL-47064 Grades: Make the contribution to total column work
MDL-47064 Grades: Add contribution to course total to behat test.