Backport of #4869 to stable5 (recreate an etag within the scanner if the cache contains an empty etag)

Backport of #4869
Cherry-pick of merge commit 5d671a8 as requested https://github.com/owncloud/core/pull/4869#issuecomment-24922622