Fix spec of #net_http_class when RestClient.proxy set

This now calls #proxy_class? method on the result of #net_http_class
instead of examining the result directly.