[UAT-158] Fix npe exception while runniing old analysis

'selection' variable is used just for export functionality and not for
gathering data for analysis.
Merge pull request #30 from thehyve/issues/uat-158-old-analysis-data-gathering-npe

[UAT-158] Fix npe exception while runniing old analysis