Fixed deleting old file versions Fixes https://github.com/owncloud/core/issues/3279

Should fix https://github.com/owncloud/core/issues/3279
Merge pull request #3397 from RealRancor/stable45

Fixed deleting old file versions #3279