Question about Ian McEwan and British folklore

I’m reading Solar, and there’s a scene that is an exact duplicate of a scene from Mostly Harmless, the fourth hitchhiker’s book. Is there some apocryphal British story about mistaken snack foods?

Er, never mind, he addresses it further on, it’s even got a name: the unwitting thief.