Yes, you will need to transform the $fieldValue from null to an empty string so more or less something like this:
$fieldValue = $fieldValue ? $fieldValue : "";
If the field is nullable it should add the empty string field as null at the insert later. If not then maybe also use the callbackBeforeInsert function.