ResourceEditor: Added missing null check.