fixing a couple issues with errata and packages

This fixes a couple of issues
  - Errata not showing up in the UI after sync
  - Org deletion failing