display only visible badges in user sidebar (fixes #689)

If no badges are visible, none is displayed