TokenPackageFactoryTest: avoid NPE on incomplete existing packages