Do not write current time before checking if cache is expired
Improve empty data check
Merge pull request #5185 from owncloud/Update-feed

[stable5] Fixes for update feed fetching and parsing