Workaround for uncaught promise chain detection.

Previously nested promise chain are reported as uncaught.
Need to do some hack to set inner promise as chained when outer promise
receive it.