Fix #13160: Propagete context of returned deferred object in Deferred.then().

When returning a Deferred object resolved with a custom context in a function passed to Deferred.then(), context of the promise, which is returned from .then(), should be the custom context.