fix NPE on isManifest when type not set