Fix checking for XML errors while parsing response status