Definitely seems like a bug. That said, once I researched teraforming, I built a terascape for one turn, canceled, and rebuilt the geothermal mine. Worked fine. That said, looks like you can't get resources if you don't have the relevant tech prior to building the improvement.
Until this is...