first check if file exists before checking the files size
Merge pull request #4481 from owncloud/fix_versioning_size_check

first check if file exists before checking the files size