reproduce problem with reported one
minimize Issue29.java
avoid throwing exception when stack is TOP. refs #29