[1.6.x] Fixed #20961 -- Fixed HttpResponse default empty content

Thanks epandurski at gmail.com for the report.
Backport of f4e980456 from master.