Fix hang when the instance buffer is wiped
Fix hang when the instance buffer is wiped

To reproduce the problem:

* execute `:LeaderfFile`
* close the window with `Ctrl+C`
* execute `:%bw`
* execute `:LeaderfFile`
Yggdroot/LeaderF,Yggdroot/LeaderF,Yggdroot/LeaderF