Improve Zapv2::statusCode($url) method

Get the proxy value of stream at the beginning and put it back in the place
after the main task is done.