Changed behavior detection for whether to show an output cell right away or wait for an async job to finish.