INTEG-211: [Cloud migration] Exceptions about File activities in log

Link issue: https://jira.exoplatform.org/browse/INTEG-211
Fix description: Declare missing variable