Fixed a bug in which an error would be retried when retryAfter was 0.