Be more careful about rebinding tab when content assist window closes

Don't know if this change is really necessary, but better to be safe.