Use httphelper and cache response even when it is empty

Fixes https://github.com/owncloud/core/issues/12164
injecting the helper would be great - same for other objects to be used - maybe time to write some unit test now as well - THX