MDL-55987 gradebook: Claim extra memory when updating final grades