fix(compiler): use correct variable in invalid function (#28656)
fix(compiler): use correct variable in invalid function (#28656)

Related to #26743 (but does not close it).

PR Close #28656

snaptech/angular,mgechev/angular,shairez/angular,StephenFluin/angular,petebacondarwin/angular,JiaLiPassion/angular,angular/angular,mhevery/angular,vikerman/angular,IgorMinar/angular,sarunint/angular,ocombe/angular,IgorMinar/angular,petebacondarwin/angular,mgechev/angular,IgorMinar/angular,mhevery/angular,alexeagle/angular,snaptech/angular,matsko/angular,mgechev/angular,mhevery/angular,mprobst/angular,gnomeontherun/angular,juristr/angular,vikerman/angular,filipesilva/angular,manekinekko/angular,hansl/angular,manekinekko/angular,IgorMinar/angular,mprobst/angular,alexeagle/angular,angular/angular,mgechev/angular,mprobst/angular,angular/angular,matsko/angular,jasonaden/angular,juristr/angular,alxhub/angular,mlaval/angular,jasonaden/angular,mhevery/angular,StephenFluin/angular,juristr/angular,blesh/angular,brandonroberts/angular,alexeagle/angular,jasonaden/angular,filipesilva/angular,blesh/angular,Toxicable/angular,gnomeontherun/angular,IgorMinar/angular,ocombe/angular,gdi2290/angular,petebacondarwin/angular,brandonroberts/angular,Toxicable/angular,alexeagle/angular,angular-indonesia/angular,Brocco/angular,vikerman/angular,alexeagle/angular,angular/angular,shairez/angular,wKoza/angular,alxhub/angular,snaptech/angular,hansl/angular,brandonroberts/angular,sarunint/angular,StephenFluin/angular,matsko/angular,Toxicable/angular,angular-indonesia/angular,wKoza/angular,angular-indonesia/angular,wKoza/angular,blesh/angular,IdeaBlade/angular,Brocco/angular,sarunint/angular,filipesilva/angular,IdeaBlade/angular,hansl/angular,matsko/angular,sarunint/angular,ocombe/angular,Brocco/angular,ocombe/angular,jasonaden/angular,ocombe/angular,mlaval/angular,mgechev/angular,filipesilva/angular,juristr/angular,angular-indonesia/angular,Brocco/angular,brandonroberts/angular,mprobst/angular,vikerman/angular,mlaval/angular,ocombe/angular,blesh/angular,snaptech/angular,gnomeontherun/angular,jasonaden/angular,wKoza/angular,Brocco/angular,manekinekko/angular,IdeaBlade/angular,IdeaBlade/angular,mlaval/angular,gdi2290/angular,IgorMinar/angular,vikerman/angular,gnomeontherun/angular,gdi2290/angular,brandonroberts/angular,alxhub/angular,hansl/angular,brandonroberts/angular,JiaLiPassion/angular,matsko/angular,alexeagle/angular,shairez/angular,sarunint/angular,petebacondarwin/angular,StephenFluin/angular,shairez/angular,snaptech/angular,Toxicable/angular,alxhub/angular,vikerman/angular,mlaval/angular,wKoza/angular,gdi2290/angular,manekinekko/angular,alxhub/angular,jasonaden/angular,StephenFluin/angular,mprobst/angular,hansl/angular,snaptech/angular,wKoza/angular,mprobst/angular,gkalpak/angular,petebacondarwin/angular,filipesilva/angular,manekinekko/angular,IdeaBlade/angular,juristr/angular,gkalpak/angular,gkalpak/angular,shairez/angular,blesh/angular,Toxicable/angular,JiaLiPassion/angular,Toxicable/angular,juristr/angular,sarunint/angular,gdi2290/angular,petebacondarwin/angular,gkalpak/angular,mhevery/angular,hansl/angular,JiaLiPassion/angular,mhevery/angular,gdi2290/angular,manekinekko/angular,Brocco/angular