Do not close Body when a HTTP error is received

Fixes a nil-pointer dereference crash.  This is the same mistake as in
e68cbd61015af33a50950417b7460661710bb0d6.