I am not sure but we should be more robust here for cases where app.manifest === null I think

app.manifest ? app.manifest : app.updateManifest