Return DeferredTask only if the method of the wrapped task returns an AsyncResult