Fix `filter` with multiprocessing in case all samples are discarded
{'login': 'mxschmdt', 'id': 4904985, 'node_id': 'MDQ6VXNlcjQ5MDQ5ODU=', 'avatar_url': 'https://avatars.githubusercontent.com/u/4904985?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/mxschmdt', 'html_url': 'https://github.com/mxschmdt', 'followers_url': 'https://api.github.com/users/mxschmdt/followers', 'following_url': 'https://api.github.com/users/mxschmdt/following{/other_user}', 'gists_url': 'https://api.github.com/users/mxschmdt/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/mxschmdt/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/mxschmdt/subscriptions', 'organizations_url': 'https://api.github.com/users/mxschmdt/orgs', 'repos_url': 'https://api.github.com/users/mxschmdt/repos', 'events_url': 'https://api.github.com/users/mxschmdt/events{/privacy}', 'received_events_url': 'https://api.github.com/users/mxschmdt/received_events', 'type': 'User', 'site_admin': False}
[]
[]
Fixes #2600 

Also I moved the check for `num_proc` larger than dataset size added in #2566 up so that multiprocessing is not used with one process.
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/2601/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/2601', 'html_url': 'https://github.com/huggingface/datasets/pull/2601', 'diff_url': 'https://github.com/huggingface/datasets/pull/2601.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/2601.patch', 'merged_at': '2021-07-07T12:50:31Z'}