Fixed missing column caption for queries with unsortable columns.