fix($http): allow empty responses to be cached

Closes #3809