Fixed logic for checking for the existence of a (non-self) parent window, see https://github.com/phetsims/tasks/issues/958
Fixed logic for checking for the existence of a (non-self) parent window, see https://github.com/phetsims/tasks/issues/958

phetsims/chipper,phetsims/chipper,phetsims/chipper