repr for PeriodIndex does not handle <=2 elements well (GH5372)

closes https://github.com/pydata/pandas/issues/5372