Fix promise rejection after abrupt completion of executor in InitialisePromise.
Add test for abrupt completion of the executor function resulting in a rejected promise.