I had the same problem. For me what resolved it was to set a Grade to Pass for the category for the course itself. Then the empty grades were included in the calculation and everything worked fine. I also turned off the Aggregate Non-Empty Grades option.
Gradebook
Wrong overall average (moodle 1.9.7+)
This discussion has been locked so you can no longer reply to it.