FIX: Make rake site:export_structure export uploads (PR #13938)

It failed because of an undefined variable.

GitHub