Handle empty HTTP responses from custom URL targets

Issue #247