Fix sharing issue with collection and children mismatches
Merge pull request #1234 from owncloud/fix-issue-192

Fix sharing issue with collection and children mismatches