MDL-66897 mod_assign: Properly display error messages in quick grading