richview: stop a possible index out of bounds error when there is no text.
richview: stop a possible index out of bounds error when there is no text.

wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI