Make word-extraction more resilient

If the first page of the document is empty, wordListPerPage is not populated, but

Fix that by letting #decodeFile() return whether it found any words, and loop until either that
is the case or all pages have been processed.