Fix invoking toggle-eshell-buffer failed initially.