Links to broken uploads in topics lead to 500 errors with 2.5.0

We got the opposite behavior : logged in user is good, not logged in are unable to connect and get a error 500