BUG: fixed merging with empty frame containing an Int64 column (#25183)
- [x] closes #25183
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
