Fix coredump in pkg-delete if a package has no deps installed.