CompletionModel: more robust set_visible_providers()