Fix stack corruption when calling VerifyEnvironmentsPromise().
Merge pull request #1012 from kacfengine/master

Fix stack corruption when calling VerifyEnvironmentsPromise().