Improves exception handling in GroupBy supplement

Signed-off-by: Oren Leiman <oleiman@neutral.io>