fixed minor bug when grading for the first time, it still tried to create a gradeHistory row