As discussed orally with @morawiec, I changed the grading script to:
Always output a feedback text file,
Output a specific feedback if the student's file is not found,
Make sure that the image always return 0: if any command in the grading process fails, "catch" it (simply done with Bash ||) and output a specific feedback instead.