Fix check for looking only at base packages in PackageManager.getPackage. Fixes #214.