I like this feature, but it could be a bug that the shopkeeper didn't block the door.
He mentions the shop was on D4 so I wonder if there are some oddities perhaps that the weapon fell in, say, a potion shop (he doesn't say what kind of shop) and it might have conflicting states of owned by the shopkeeper, but unable to be bought/sold by the shopkeeper.