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

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Merge pull request #1244 from Tithugues/QA_4_2_fixEmptySQL

Fix error when clicking 'Go' and having an empty textarea in SQL tab. (bug #4470)