Oh, heh.  This is sort of unfortunate.  We should probably change the API to return the badge itself as it's own field, and the instances array as another field.  Would avoid this problem and also send a lot less data.  Although that would make the results look different than the getBadgeInstances version where you specify an email instead of a badge.  Hm.