TestPeriodIndex.test_resample_empty_dataframe is failed when I pass kwargs to Resampler._groupby_and_aggregate
- [x] closes #22339
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

`test_resample.py::TestPeriodIndex::test_resample_empty_dataframe` triggers new changes
