(TextIterator::setText): Fix a bug