Fixed #38419 - BUG: set_index screws up the dtypes on empty DataFrames

Fixes #38419 - BUG: set_index screws up the dtypes on empty DataFrames
- [ test_set_index_empty_dataframe] tests added / passed

