fix empty stack check in commandenchant.java