[FaceRest] Fix a crash bug of addHostgroupsMap()