Fixed cannot export with empty columns

Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
Merge pull request #539 from muslimgiga/columns

Prevent user from exporting with empty view