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

Fixes #3770