The former corporate officer of a now-defunct Massachusetts company didn’t overpay on his outstanding tax liability despite entering into a settlement agreement with the Internal Revenue Service, a state appeals court said Tuesday.