adding a check in to ensure that a hostgroup has a "host" array entry before doing the map, otherwise it returns nothing