If the pack was just replaced, there is some danger that the existing PackIndex object in memory is out of date relative to the current file. We need to make sure we remove the old PackFile and its PackIndex from the ObjectDatabase implementation before we add the pack.