If the attribute type is not a string and it contains an empty value, set it to null