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

Yes this looks like the same issue. @sukria if you update to the latest tests-passed I have added a fix which makes things more robust for broken uploads (although, you should still try to clean up the broken upload references)