Fix missing insert IDs for hostgroups.