Fix error with PlagiarismChecker, prevent crashing due to non-terminating programs.