fix group_mappings import

Set it to empty dict if missing (KeyError); fix syntax for catching
multiple types of exceptions.