Use ItemStack.clone() to retain NBT data from mods, fix a few NPEs