Handle exceptions when parsing XML

- Grab resumptionToken through regex when json.loads fails