guard against an empty stack due to OpcodeStack badness