Fix duplicate model find query in UploadsController
What does this MR do?
This takes the first commit from !19383 (merged) and re-applies it.
Part of #33777 (closed).
I can add specs but I'm not sure they make sense for this specific commit as it's such a simple change.