Fix calculating size for empty folders
Use query to calculate folder size
Add test for calculating size of newly empty folder
Merge pull request #4221 from owncloud/fix-3698

Fix calculating size for empty folders