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

'selection' variable is used just for export functionality and not for
gathering data for analysis.