Fixed a case where non-XML data was passed to the XML parser

This issue was caused because the passing to the parser is
unconditionally done even if the requested page returned a different
HTTP error code than 200.