Fix error when requesting badge instances of a user with no badges

This fixes an error caused by a request for the badgeInstances of a user that has no badges.