Added error if XML response document can not be parsed.