I have noticed this too. If I had to guess, it happens when you get hit by one of Ox's blue orbs when you have zero essence collected. It might be with less than 5, however I have not specifically tested that, just noticed that one time I got hit before collecting any, this bug happened, and another, I got hit after collecting some amount and it didn't immediately end with gold credit.