Dissipative phase transitions and passive error correction