Return nil object on define_attribute_method when doc is null