Someone can correct me if I'm wrong, but I
think that electronics that are not in use when an EMP goes off remain unaffected. Only operational electronics are wiped. At least, that's the way it is often presented in fiction.
And it's called fiction for a reason.

An EMP is a magnetic pulse that induces electric currents in wires and circuits, currents so strong that it burns them out. It doesn't matter if they have power running through them ahead of time or even if they have batteries installed -- the EMP itself is the source of the power that runs through them.
The only defense is for a device to be shielded/hardened against external EM fields, e.g. by a Faraday cage, or to have robust circuits that are designed to handle really intense currents without burning out. Perhaps the metal shell of the "quarter" walkie-talkie would work as a Faraday cage.
I am not sure where you are getting your information, maybe from some "survivalist" forum?
This is the
Commission to Assess the Threat to the United States from Electromagnetic Pulse (EMP) Atttack, and their reports. Their conclusions mirror my own education and training (college level) with electronics and wiring.
Here is a link to their relevant study; I hope you find it enlightening.
If a circuit is closed, it is generally safe from EMP. An electric surge will not effect anything that is not a complete circuit, for the simple reason that there is nowhere for electricity to flow. If your flashlight is turned off, there is no circuit and it will not burn out. There may be an exception with micro-circuits because of the small gap between connections.
For the same reason that we ground ourselves before taking components out of static bags, an uncircuited micro device
could burn out from a sudden charge because of the small gap. This is like the spark from your finger when you walk accross a carpet and touch something that is grounded. From the research of the Commission it is not actually clear what the level of threat is.
Automobiles were subjected to EMP environments under both engine turned off and
engine turned on conditions. No effects were subsequently observed in those automobiles
that were not turned on during EMP exposure.
Cars that were turned off, even with modern electronics, were not affected by EMPs.
What I find surprising is that you consider these threats real and complain that "And it's called fiction for a reason" but you don't complain that a device from supposedly the 1950s or so, that is less than the size of a pocket watch, can contain enough power to send an EMP with enough voltage to even burn out a lightbulb.
Let's all suspend our disbelief for the sake of a good adventure story, but please don't try to argue that there is any real threat from these type of devices.