Better detection of null IP address