Fix: possible RGZ corruption when reopening files where last segment is empty.