[PATCH 4.19 04/51] ipv6: fix the check before getting the cookie in rt6_get_cookie