Raise on PUT /apps/manifest if manifest is invalid

I had put an invalid manifest and this method printed warnings, but ran through nevertheless and created an AppActivity object, but no PHA object. Now the server crashes when trying to get all manifests because of that mismatch.