nice job! i bet the car was stumbling so bad the computer commanded the AC off so the AC wouldn't rob power, which probably kept the car running (from the horribly gunked up throttle body!) nice catch
I had the same code on my 09 G5 which has the 2.2L. poor idle. I replaced that actuator posted above, and it resolved my issue.
Check the wires for that sensor... you said your car was in an accident?