MDL-46997 Grades: More behat tests for grades with different maxgrade values

Includes a fix for sum of grades when dealing with hidden items with differing maxgrade values.

Conflicts:
	grade/tests/behat/grade_aggregation.feature