gtkui: fix random crash after closing playlist using menu (bug #1193)