With the pipe disconnected and open to the air (not plugged), as you say, unmetered air will be getting in, bypassing the air flow meter. SoTherefore the mixture calculated by the engine ECU using readings from the mass air flow meter will be lean.
When the ECU reads the results of the lean mixture burn at the O2 sensors in the exhaust, it will trim the mixture to compensate, so that the mixture is no longer lean.