fix getColumns failures when QueryResult has no data