Fix error when clicking 'Go' and having an empty textarea in SQL tab.

Connect and don't select any DB:
- Go into SQL tab
- Leave SQL textarea blank
- Click on "Go" A JS error appears.
This PR should fix this.