Adds range check

Adds a safety check to make sure no one gets assigned a badge out of
range. They would instead get assigned attendee badge 0, so that the
badge can be fixed later.