Handle Variants containing null in BinaryEncoder

When encoding DataValues: in addition to checking if the Variant
reference is null, check if the value inside is also not null before
indicating there is a non-null Variant being encoded.