I ran into this same bug when playing the web version, although for me, it was when I found a holy symbol in a chest.