fix from Brad Langhorst to correctly check if the primaryGroupID has been set