Badges: fix active styles when in non-anchor `.list-group-item`

Fixes #14915.

/cc @mdo