Fixed bug with not finding archives of upstream-removed packages for removal

Closes #1193 (the error was actually a bit different)