Fix condition of hostgroup.puppetclasses being empty array