waitForManifest() {
    const promises = [
      this.manifestPromise_,
      this.successPromise_,
    ];
    return Promise.race(promises);
  }
Waits for the manifest to be loaded (or to fail with an error).
@return {!Promise}