Fix stack corruption when calling VerifyEnvironmentsPromise().