[SourceEditor] Handled possible crash in Translate UTF8 index.