Images not loading after merge even when file exists and Upload model exists

I hate debugging those kind of errors.
Most of the time I just manually execute the code in the controller in a rails console.

This time I guess the 404 might be coming from line 111

What does Discourse.store.list_missing_uploads(skip_optimized: true) give you?