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

https://bugzilla.mozilla.org/show_bug.cgi?id=1098664