Fix updated of the group layer when changing visibility/pass through
We must use recursive visibility *only* when passthrough is enabled.
BUG:347746 Ref T202