Fix the logic of previous commit. Errors for corrupt PDF files not being indexed should be filtered out.