Keep an upload's reference check when removing it fails

The check before an upload's attempt ran outside the upload's error
handling, and dropped its mark first. When removing an unreferenced job
failed, the error escaped the upload worker, stopping it, and the next
attempt uploaded the discarded image. The mark now stays until the check
settles, a failed removal waits for the usual retry, and the job never
uploads in between.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
a03bf21612Dara Adedeji committed on 9/28/2026, 5:16:11 PMparentd41ba4b
2 files changedLine totals unavailable