fix(ContractLoader): Raise the correct error when date parsing fails