[CORE][UI] fixed crash due to PreviewItem::setSelected() when closing viewer while loading thumbs