Added error handling for malformed XML payloads, to allow resulting API response to be valid.
Added error handling for malformed XML payloads, to allow resulting API response to be valid.

robotpony/Presto,Discovery-Software/Presto,robotpony/Presto,robotpony/Presto,Discovery-Software/Presto