REGR: Regression in groupby.nth() for out-of-bounds indexers (GH6621)

closes #6621