Move out-of-range check

Moves the check for assigning badges out-of-range into next_badge_num,
so it works for new attendees like it ought to.