Remove empty self replaced pkg arrays from pkgdb.