To add to that, if you pickpocket someone and immediately trade with them, they won't notice the missing goods from their inventory. I don't know if you actually need to purchase something or just open the trading panel though. Regardless, a useful bug.