Many pedals use a 3P3T switch to provide true bypass using 2 of the poles and the third pole to switch the LED. I've occasionally seen pedals where the pole of the switch used for the LED has failed but the other poles are OK so the pedal works fine put there is no LED.
By the way, testing the LED with a 9V battery without a dropping resistor will kill the LED.