Fetch archives in commit() only when there are packages to install
Unattended upgrades crashes frequently in do_auto_remove() when commit() tries to get the lock to fetch archives while there is nothing to fetch when doing only package removals.
LP: #1602536