[CSharpBinding] Fixed possible null reference exception in UnitTestTextEditorExtension.