Granting a newly created badge with no default badge group causes errors

No repro here or on meta.