Never put anything other than Mass Air Flow cleaner or Contact Cleaner on the Mass Air Flow sensor vane.
That little sucker gets VERY hot, a few hundred degrees.
The vehicle has an ambient air temperature sensor that inputs the temperature of the outside air to the vehicle's computer. As air flows over the heated vane, it cools off by some amount. More flow over the vane equals more cooling. Utilizing the temperature of the vane and accounting for ambient air temperature, the computer determines the amount of air entering the engine.
The amount of fuel is then proportionally injected into the cylinders for a given throttle position.
As I explained way earlier, this process does not occur until the vehicle reaches warm operating temperature and begins to operate in open loop mode (reading live sensor data, vs. closed loop mode that operates on pre-programmed parameters).
The WD 40 probably effected it for a little while, specifically right after spraying the sensor. This explains your 10 minute shut down; the vehicle warmed up and went into open loop mode with WD 40 on the MAF vane. Most likely the WD 40 burned off at the dealership and everything was peachy afterward.
Glad it's working now!