I'm guessing entirely, but I wonder if this (and line 97) cause errors in the transaction if config_group_ids is empty?