Base: Fix bug preventing AJAX from retrying on fail