MDL-63714 core: Wrap doRender in pendingjs