[SourceEditor] Fixed null reference exception.