fix unable to update grading when answer gradings is not created