MDL-46576 core_grade: Misc bugs I have mangaged to fix.
MDL-46576 code_grade: a bandaid fix to avoid trying to update grades when we aren't viewing grades