BUG in .groupby for single-row DF
No KeyError was raised when grouping by a non-existant column

Fixes #11741

Xref issue #11640, PR #11717

merged via https://github.com/pydata/pandas/commit/e9e85988ec1240803379ae35ce8590e94537e747

thanks!
