This is definitely not needed here and I even doubt whether it is needed in addScanColumn.
Why can't the TVE construction add the column to the existing cached scan without regard to whether it is a subquery scan?