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

@domcleal what do you think? should be the interfae_fact_name or dhcp_interface value be used in the error message?