decrement rules_index if we encounter duplicate chains

decrement rules_index when we encounter a duplicate chain. if we don't do this and a duplicate chain name is found then the rules will be inserted into the wrong place which can cause iptables-restore to fail to parse the new rule set.