TextEditor: fix initial NPE

When the Script Editor initially comes up, the ScriptLanguage is null.