Check for hash

See https://github.com/owncloud/core/pull/13042
Merge pull request #13043 from owncloud/check-for-hash

Check for hash