Fix package-compute-transaction advice for compatibility with latest emacs.