StageTextTextEditor: fix for multiline causing a hang or crash (closes #698)