BUG: MultiIndex.set_levels/set_codes raising IndexError on empty input (#65957)