interactive autograder robustness: safer error checks (#2165)