rewind active_record node only if subobject is not nil