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