Fix error handling for resumptionToken non-integer value.