fix(bazel): do not throw if ts compile action does not create esm5 outputs (#27401)
fix(bazel): do not throw if ts compile action does not create esm5 outputs (#27401)

In some applications, developers define a `ts_library` that just consists of `d.ts` files (e.g. to type `module.id`; see: https://github.com/angular/material2/blob/master/src/module-typings.d.ts), and expect the `esm5.bzl` file to not throw an error like:

```
  target.typescript.replay_params.outputs
struct' object has no attribute 'outputs'
```

The "replay_parameters" property will exist in that case, but is set to "None" because there is no action that should be replayed in favor of producing ES5 outputs. See: https://github.com/bazelbuild/rules_typescript/pull/326. Notice that this right now breaks similarly because an empty `struct()` is returned that does not have a property called `outputs`. [#326](https://github.com/bazelbuild/rules_typescript/pull/326) fixes that by being explicit that there is no _action_ at all.

PR Close #27401

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