Fixed UpdateTosDetachedIfDetachedTosUpdated for cases where CanFindRoot and DistToRoot is valid.