Reinstate has_default_columns? method for query.
Reject blank SQL statements.