Fixed folder icon update routine when share owner exists

Whenever a folder has a "data-share-owner" attribute, the icon is now
properly updated to a shared folder icon.
Merge pull request #10447 from owncloud/share-foldericonfix

Fixed folder icon update routine when share owner exists