fixed NullReferenceException for unknown IPs

closes #3167