Fix edit override when no hostgroup is currently selected

When a host doesn't have a hostgroup already selected, the edit override
for the openstack hostgroups throws an error.