S-197863:  Add an empty check to badges.