net: fix underflow for checksum of invalid IPv4 packets