Catch `ArgumentError` raised by `URI.decode` when passed an invalid session object.