fixes #9241: enable collapsing for labels, in addition to badges, when empty