[PATCH 4.14 10/35] ipv6: fix the check before getting the cookie in rt6_get_cookie