Don't set hostgroup attrs if no hostgroup present