Fix zone if undefined bug

  - check `window.zone` instead of `zone`
  - improve checking whether zone is avaiable before adding reporters