As it turns out, this code is also used to configure the multiselect for the new user creation form.  I restored this check in code so that it doesn't try to set the group for the as-yet-uncreated user.