Allow pkg.purged to purge partially removed packages

This commit fixes #4972 by adding a check in apt.py for packages that were removed but not purged, thus allowing the **pkg.purge** execution function and the **pkg.purged** state to purge partially-removed packages.