Pass gracefully over non pdfs

A fix for https://github.com/nisaacson/pdf-extract/issues/3 (I discovered it independently and couldn't wait)
Merge pull request #4 from mchapman/master

Pass gracefully over non pdfs