don't move a share mount point into a different mount point

fix for #8429 

Don't move a share mount point into another mount point.

cc @PVince81 @icewind1991 
> I think you should use `instanceOfStorage()` here to be sure, in case
> of storage wrappers.

good catch, fixed!