core: fix crash on buffer close when option weechat.look.hotlist_remove is set to "merged" (closes #199)