Fixed bug to send result of executing resolve or reject on promise object being sent to Deferred object.