Pass gracefully over non pdfs

A fix for https://github.com/nisaacson/pdf-extract/issues/3 (I discovered it independently and couldn't wait)