Fix wsod
Merge pull request #4254 from openscholar/4202-wsod

Fix wsod in pin private file download