Added null and empty checks to isPublicIpAddress