MDL-41555 behat: Fixing catch statement location

The exception is thrown when getting the
browser session, not when accessing the first
URL.