fixes #18344, return promise from dojox/layout/ContentPane

(cherry picked from commit 87871a637c1e05e3bcdc42aefceb1f0bdac5dcc1)