Fixed cannot export with empty columns

Fix #538
This issue was originally on varify
Signed-off-by: Sheik Hassan <solergiga@yahoo.com>