fix noSuchWindow() for new chrome driver