Quick fix for grader crash problem

As discussed in jittat/cafe-grader-judge-scripts#2, I'd like to include your commit as a quick fix. BTW, I don't know if I can initiate a pull request from your repo.  Hopefully this should do.