Fix issue 11020

Fix for issue #11020 - don't set __kwarg__ for an empty dict.