Fixes badgeBuilder

badgeBuilder otherwise will try to iterate over non-existant badges.
Merge pull request #7 from dinoboff/few-badges

Fixes badgeBuilder bug when badge count is less than the specified badge print count.