Changed PackageManager to check that a package name is not empty instead of PackageFileStorage