[sharing] move the mount point up if the parent folder no longer exists

The user will no longer be able to access a shared file/folder if he moved it to a sub-folder and later deletes the sub-folder. This pull request makes sure that the share mount point will be moved up to a parent folder which exists so that the user can still access the shared file/folder

cc @PVince81