I've just tried it in Essentials, and while you can open the pause menu just before the NPC notices you, saving and loading won't stop that NPC from noticing you immediately, which means you couldn't get past a roadblock that way.
Still, you shouldn't be able to open the pause menu at that time anyway. Thanks for the report and the fix (which I also applied to using a registered item).