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

When viewing a profile page when badges have not been awarded, the system throws ``TypeError: float() argument must be a string or a number`` on the line ``percentile = (float(rank) / float(user_count)) * 100``.

This change should prevent that from happening.