Fixes variable referenced before assignment bug in reports.
Fixes variable referenced before assignment bug in reports.

archesproject/arches,archesproject/arches,archesproject/arches,archesproject/arches