wf_array_to_delimited_string() improvements

- Check for empty values in array
- Only escape values in array, not $start and $end