NPE in resumptionToken handling