Fix faulty logic with apply_empty_result()
Corresponds to issue 44090 (https://github.com/pandas-dev/pandas/issues/44090)

- [x] closes #44090
- [] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry

There was some illogical code flow in this method, and it was adjusted accordingly. The progression should be the same and no adjustments were made to the actual underpinnings of the method.
This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this. Thanks for the pull request, but it appears that this broke existing tests and we would need a pull request that also includes unit tests. If you could address the comments and merge the main branch, we can reopen. Closing.