Fix problem with wrongful deletion of all fields not in templates when repeaters are present.