Update the handling of reports to deal with error conditions in the autograder.