nativeElement can return null so an error can occur when accessing nodeName from nativeElement. PR Close #32198