Save min_id before we try fetching an entry

Otherwise the min_id would not get saved for failed or missing entries.