Test for null in IP/hostname parsing