Prevent NPE upon deserialization of inventory interfaces