BUG: fix period index object instantiation when joining with self

This PR fixes an issue where joining a PeriodIndex with itself resulted in a
new object.