Updated genericDeserializationVisitor to not set value on a non object