adding special handling of checkPrecondition() for chunked upload

backport of https://github.com/owncloud/core/pull/9772 to stable7