fix($http): don't parse single space responses as JSON

Closes #9907