in the multi record insert, there is a setting for Skip If Empty, you need to select the clinics repeating field in that setting so it will be ignored if not checked.
to fix it, i change:
$WA_insertIfNotBlank = "";
to:
$WA_insertIfNotBlank = "clinics";