catch xml parsing error when attempting to parse an empty string