Fixes #7001 - Prints table headers when no data