Fixes #2835: Collapsing a group that contains other expanded groups works now.