Only parse XML if the response looks like XML.

This solves an issue in IE where parsing throws an error in the console (XML5619: Incorrect document syntax.)