MDL-36757 course: avoid accidently overwriting the hidden/visible values set on grade items