Fix TypeError in pkg.group_install

Package groups are case-insensitive, so convert the group names to
lowercase in group_info to ensure that matches are found.

However, if the group does not exist, this same traceback will happen.
Resolve this by using dict.get.

This fixes #4260.