Use node[ipaddress] if the cloud IP isn't valid

Workaround for problems caused by OHAI-387
Merge pull request #117 from tas50/COOK-2257

COOK-2257: Use node[ipaddress] if the cloud IP isn't valid