httpclient: Correctly deal with HEAD req. returning 404

Fixes #1927