Calculate size for existing directories only
Merge pull request #1764 from owncloud/Undelete_directory_fix

Fix for Undelete directory action