Delete Requests: Deleted packages are not always AIPs

refs #7132

Packages being deleted are not always AIPs - get package type from request.
Fix raise to return