fixes  #3288
Merge pull request #3316 from dotCMS/issue-3288-export-content-to-csv-doesnot-work

fixes  #3288