Fix NPE when loading entity NBT data