Fixed 3.1-specific switchToWindow() behat feature