fixed StreamedResponse with HEAD as a method (closes #4502)

backport ffdc5af68075b9e2911f7f19b23faa0558637c12