In bot games, emptying the Curse pile will not count towards a 3-pile ending. I have multiple games now where I have three piles empty, including the curse pile, but the game continued several more turns until a fourth pile was out.
This hasn't yet been tested in rated games.
See game #96798563 on frankfurt.