Fix for inline widget not correctly closing

https://github.com/adobe/brackets/issues/8409