extractExpectedChecksum() handle invalid hex digits

I updated the extractExpectedChecksum() function to catch invalid
hex digit exceptions and handle them as invalid checksum errors.