Fix panic when manifest env vars contain non-string values

[Finishes #65518854, #68011504]