RAZ-3337: AWS: arguments.thestruct.awsbucket doesn't exist error when importing assets via scheduled task
- Fixed error by making sure variable is initialized properly and in scope before method is called