http: Avoid EE warning on ECONNREFUSED handling

This is a back-port of the same fix in
deb1dc279d49463e13af44feed45c79ae0f379f9, for v0.8.