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