tl;dr Christmas light bulbs each have a bypass wire which is initially insulated to avoid shorting the filament. If the filament burns out, the new high electric potential burns off the insulation, thus re-completing the circuit for the rest of the bulbs.