Do not crash when a transaction is removed at the wrong moment

It seems to happen when certain packagekit transactions have a preprocessing problem.

See https://crash-reports.kde.org/organizations/kde/issues/401665/events/24ff29748e5a44fbb47db9ce5d471413

Merge request reports

Loading