Only parse XML if the response looks like XML.

This solves an issue in IE where parsing also issues an error in the console (XML5619: Incorrect document syntax.)
Merge pull request #9 from Baboom/master

Only parse XML if the response looks like XML.