fix($http): allow empty json response

When a response contains an `application/json` header and
the response is empty the response should be left as is.

Fixes #9532
This should be `resp.data = undefined`.