Fix a crash when promised value is null
Merge branch 'master' of https://github.com/rdesoky/JSPromise