Take the real `max_attempts` from the API, and take it into account only when it is greater than zero.