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/scenery-phet,phetsims/scenery-phet,phetsims/scenery-phet