Only write item subvalue if it has one; fixes shop item bug.