Whenever you open a chest, furnace or any other objects like that, it updates and removes the torches.
https://bit.ly/2Hz9UGa
For any map creators, you could use this while it lasts. It could create a false adventure mode cause you can add nbt to items and specify what type of items for this to work on, also, dropping the item just removes the item from your hotbar and doesn't actually drop them. But although it could be used like that, it is a bug and should be removed.
If you use a comparator, it almost works. If you spam Q, it eventually doesn't give you one. I'm not sure if this is a bug or just cause comparators aren't fast enough.
When I mean use a comparator, I mean put,
'execute as @p unless entity @s[nbt={Inventory:[{id:"minecraft:stone"}]}]' in one command block then 'give @p minecraft:stone' in a second.
No I am not on peaceful. I am on Normal.