hamsters eyes arent very good at seeing things close to them, so they use their sense of smell more - so if your Mum smelled of food then Nibbles was probably wondering whether he was being given a tasty treat or not!
Hope he doesnt make that mistake again, but in the meantime always wash your hands very well before handling him (and after of course
)