check hostname presence
Merge pull request #2402 from dparalen/ec2_inventory_hostname_check

check hostname presence