fixing an NPE caused by not checking if an enchantment was null