don't build the table_tools div if it's empty

prevents an empty space from appearing above your table
Closes #2151 (kudos @clmntlxndr)