Fix bug #10089 ([CEF 2171] Cannot reopen Jasmine test window after closing it)

Fix bug #10089 -- We were previously relying on access of `window.location` throwing an exception to tell that the test window was closed. In newer Chrome, it's simply stubbed out instead.

Check `window.closed` instead, which is a much more standard way to get this info.