Fixed the 'has data' check to make sure that tables without any data are not being rendered.