(ScriptingEditor) Prevent exception about the saved tab index