Switch to using BoilerpipeContentHandler.getTextDocument() which was introduced in Tika 1.3.