Fix TypeError that occured when viewing a user page when badges have not been awarded.
Merge pull request #240 from fedora-infra/feature/fix-profile-typeerror

Fix TypeError that occured when viewing a user page when badges have not been awarded.