Things don't get instantly cold in space, quite the opposite.
...Although from "The Last Outpost", we know that the Enterprise
-D is built so that loss of most power indeed results in cooling, not overheating. And that the cooling results in uncomfortable temperatures in the outer parts of the ship within hours. Still not reason enough for a mad scramble out of the bridge, though.