Fix bug listing tables for Query#new or query with no results