I don't think this change is correct, in the secure catalog we hide a layer group only if all of its sublayers are invisible, otherwise we just wrap it and reduce the amount of visible sub-layers