Check for cloud attribute before retrieving in `ipaddress`

If the remote_node doesn't have a `cloud` attribute, the existing code crashes.