but there's most definitely electronics in the warhead.
I don't think that one piezoelectric crystal rates as "electronic". It's more along the lines of "when hit with a sledgehammer generates a jolt of elecricity". As the body of the greanade serves as one of the wires, and the other wire is completely surrounded by it, the whole circuit (already incredibly robust) is perfectly shielded against any EMP.
I have a piezoelectric lighter for my gas stove, I've disassembled and repaired it several times. Calling it "electronics"... Too much a honor. The crystal is big, rough, it generates several thousand volts when squeezed, and can probably withstand a dozen thousand volts applied to it without even noticing.
I imagine the crystals used in the grenades are even more brutal.
P.S. They did teach us
RPG-7 in the university, so thoroughly that I haven't yet forgot it. And considering that the war machines are roughly the same everywhere...