#3204: Fix js error on link form when there are no files.
#3204: Load everything needed to insert a link to the first file ever uploaded to a site.
Merge pull request #3289 from openscholar/3204-js_error

Link form should work if it starts with no files