MDL-46498 mod_assign: Only delete the specific unreleased grade(s)

Deleting the whole grade item would delete correctly released grades.