Fixed bug with null ColumnReference and with null top-most where node.