Added a check, when rendering the delete button, to see if there are pinned
queries, rather than just checking for other unpinned queries.
Merge pull request #445 from spenceralger/delete-last-unpinned-query

Allow users to delete the last unpinned query as long as there are pinned queries