BUG: Fix Segfault with pd.tslib.get_period_field (GH4520)
Merge pull request #4562 from prossahl/AHLRAP-3065-01

BUG: Fix Segfault with pd.tslib.get_period_field (GH4519, GH4520)