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

If no badges are visible, none is displayed
Merge pull request #690 from xi/feature-689-fix-user-sidebar-badges

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