Maybe not related, but it's worth throwing out there in case someone else encounters the problem. Many moons ago a customer came into the shop I worked at complaining that their car stumbled horribly when driving around. Step on the gas, stumble stumble - but ran absolutely fine when parked in P or N. Put the car in gear and try to rev the engine with the brakes on, stumble cough stumble as well. Back in P or N, ran fine. :0/
Electrical diagnostics turned up nothing. After deciding on pulling/cleaning the MAF sensor as a Hail Mary, the tech found a hidden (underneath, between the little accordian groves) but significant crack in the rubber MAF->throttle body air tube. What was happening is that the crack self-sealed (mostly) when the engine wasn't under load, hence it ran fine. When the engine torqued (driving or in gear with the brakes on) it opened up this crack, creating a massive vacuum leak downstream of the MAF sensor (effectively bypassing it - no bueno).