ziafazal/api-fix-users-grade-complete-count: fixed count exceeding total participants

and users_grade_average float conversion exception when average is None