netfilter: nf_ct_ipv4: handle invalid IPv4 and IPv6 packets consistently