I am trying to extract phrases with certain keywords from pdf documents. I use a "for" loop. Everything is correct until in some document none of the keywords appe