Fixes #7263 - make sure the ip address from interfaces is valid

Good catch, it seemed to me that it would be more helpful to use the name that was used in the facter, but I have no hard prefference