Bug fix.

Revert an incorrect change made in
c5fc945f33e441705d8518077468184dda6b3599 (imported from viewer 3).

This stops ASSERT(mSegments.back()->getEnd() == getLength())
in LLTextEditor::loadKeywords.