Fix issue where groups were not deleted when "Replace entire addressbook" option on contacts import was used (#1489420)