Confirmed [Indev 0.55] Using the last of an item without exiting the inventory allows infinite use

For example, I had only 1 Max Ether and was able to use it to fully restore the PP of all of my moves on all of my Pokemon. Surely this is a simple fix to just make the item disappear upon the last use. All you have to do is stay on the same page (Not going to another category i.e. from Medicine to Plants or Standard) or exit your inventory.