fixed NPE when saving an Item in a Compound to a file