Ugly error message when a quiz is regraded while its associated grade_item in the gradebook is locked
Handle the exception correctly with a proper dialog:
Warning, changing grades here in this quiz will not be reflected on the gradebook, because the grades are currently locked. Do you want to continue with the regrade anyway?
Buttons: Regrade anyway / Cancel