We should not try to access the data, or decode it as JSON if the request failed, because in that case the data will not be JSON and we will get errors from the decoder. Change-Id: Ibe663992a0487284d79e100b36392534fcbe88db