Avoid endless loop on invalid files

11 jobs for fix-endless-loop in 6 minutes and 58 seconds (queued for 1 second)