[SourceEditor] Fixed possible null reference (found via raygun).