dhcp4: fix routes with gateway on other network than IP address (bnc#887586)