Set the candle to use magic, run out of magic, and have it equipped (in either A or B) when you change screens. The game automatically switches your B slot to another item when the screen changes, and sometimes even removes whatever was in the B slot from your inventory completely.
[RC1] Candle causes loss of item on screen change when out of magic
FIXED.....