Fix for NULL ipaddr

Some networks don't fill in their address. Handle that.