Use httphelper and cache response even when it is empty

Fixes https://github.com/owncloud/core/issues/12164
@bantu @Raydiation Weren't there some inferences with this method?