This is the autumn 2022, the pivot is only starting. Gas prices are sky-high and there's a lot of uncertainty in the anticipation of winter. The storage is low since Russia started this strategy already in 2021 by restricting the supply. The government is against buying Russian gas, but you don't know how bad the winter will be and how strong the opposition will become if factories stop working and people can't afford their heating bills.
On one hand you argue that the pipeline has no value, on the other hand Germany would get extremely mad at Ukraine destroying an extraterritorial infrastructure of no value (as you say) which is mostly owned by Russia.