BUG: PeriodIndex slices with out of bounds results incorrect

Closes #5407.