Fix error to allow to specify only a patch when calling request_client.

Before it used to crash due to a call to parse_url.