In CreateNewBlock (in miner.cpp), inBlock is cleared before addPackageTxs, so inBlock will be empty in the first call to UpdatePackagesForAdded
Since this is the only callsite, there is no change in behavior.
Backport of core#24934.
Depends on D12954.