netdev: Let netdev_get_in4(), netdev_get_in6() take null pointer argument.