Fixes #7001 - Prints table headers when no data
Added tests
Merge pull request #146 from adamruzicka/remove-no-data

Fixes #7001 - Prints table headers when no data