This makes it consistent with the way it works in the LMS, we're also relying on attempt.sumgrades because grade item marks are never null. See MDL-81599.