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

Also, why use ```$interface_fact_name``` instead of ```$foreman_proxy::dhcp_interface```?