fix exception when updating a Nfs/Smb/Webdav shared folder; also check if SharedFolder already in use when updating settings