cp/avian/java-net.cpp: fix segfault

In Java_java_net_InetAddress_ipv4AddressForName:
  Throw nullptrex on hostname = null.