Check for hash

See https://github.com/owncloud/core/pull/13042

@karlitschek FYI
@carlaschroder @jnweiger Dependency fun again.