moderation: Fix deposit uri computation for 'code' deposits
Prior to this commit, this was done for all deposits but it's only a good fallback for typed deposit 'code'.
Related to swh-deposit#4123 (closed)
Test Plan
tox
Migrated from D7486 (view on Phabricator)