Fixes for corpus export

Now ignores files without PDFs, and ignores missing references text
bitstream (not all texts have references).