Use httphelper and cache response even when it is empty

Fixes https://github.com/owncloud/core/issues/12164
> @DeepDiver1975 This method requires an an own upgrade server to be unit-tested

that's why I ask you to inject the httphelper which can then be mocked in the unit test