Bugfix: Fix generation of hostgroup_ids when creating a host