Fixes #4585 - assigning puppet classes to hostgroups