TextPage::takeText: reset actualText for the new page
actualText has an internal pointer to the TextPage it's writing to, so if you called takeText and then continued to output more pages to the TextOutputDev, their text would be written to the page you'd taken rather than the new one.
(I ran into this in practice in xpopple's search code; see Debian bug 1059084.)