Fix bug when checking for Ajax request status in IE

- the `status` property does not exist until readyState === 4; checking
  before this results in `Unspecified error` in IE8