Use httphelper and cache response even when it is empty

Fixes https://github.com/owncloud/core/issues/12164
It's okay to do it this way until we switch to something else such as ZendXML. (silly to have multiple lines for that anyways)