HPCC-11865 Clean up string handling in XMlTokenizer when exceptions thrown

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>