Fix error by add condition to check if item is empty from the conditional
Fix error by add condition to check if item is empty from the conditional

Change-Id: I20ec56279fb774fc411251cc89e1a685a6a7c5e7
Closes-Bug: #1573908

openstack/openstack-ansible-openstack_hosts,openstack/openstack-ansible-openstack_hosts