Fixed some crashes when exchange responds with bad data.