Handle error when decoder's stack is empty