Fix NPE on invalid enchant