fixed exit code when skipping PDF with invalid filenames