Revert "Handle error when looking up retained packages"

This reverts commit fb18c3c467d9b2546cf863c10518ba1dd3890f31.