Bug 1098664 - fallback to manifest app type if metadata.json one is empty. r=gduan