Handle undefined sub text in text viewer