Deletion kept package even when version remained

deletePackage in Data.js did not remove the package even when no versions existed. This caused an exception when we GET /index.