Works around well-established IE XHR bug where 204 statuses are mysteriously returned with status 1223. Courtesy of Luke Chambers.