Handle null host ip from NetUtils.getDefaultHostIp().