don't create empty versions
Merge pull request #4243 from owncloud/no_empty_versions

don't create empty versions