Throw exception on bad XML response