Badge fixes

For https://github.com/theodi/shared/issues/329

Fixes https://github.com/theodi/member-directory/issues/286