WebSearch: fix IndexError in is_hosted_collection