Merge pull request #1392 from mattn/fix-issue-1390-query-comment-panic

Fix panic when querying input with no SQL (only comments/whitespace)