manager: Add chat-deleted signal and use it
items-changed signal is emitted after the item is removed from the list. If the removed item is selected_item, it may have already freed. So the CHATTY_IS_CHAT (selected_item) is invoking a UB. Let's fix it.