dhcpv4: avoid segfault when there's no IPv4 prefix