Fix debounce function to always return a viable promise.
Fix debounce function to always return a viable promise.

jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab