Convert empty string values to NULL, relations cannot be ''