[REXML][Bug] Element#text= cause NoMethodError

e$B2!ED$G$9!#e(B

e$B?=$7Lu$J$$$G$9$,e(B redmine
e$B$N1?MQ%]%j%7!<$rM}2r$7$F$$$J$$$N$G!"e(B
e$B$R$H$^$:e(B ML e$B$K%]%9%H$5$;$FD:$-$^$9!#e(B

Element#text= e$B$Ke(B false e$B$rEO$9$He(B Parent#add
e$B$K%k!<%F%#%s%0$5$l$F$7$^$C$F!"e(B
false.parent = self e$B$r<B9T$7$h$&$H$7$Fe(B NoMethodError
e$B$GMn$A$^$9!#e(B

trunk, 1_8_7, 1_8_5 e$B$GB8:_$r3NG’$7$^$7$?!#e(B

API Doc e$B$r8+$k8B$j!J$^$?8D?ME*$J>o<1$K$*$$$F$b!Ke(B
text= e$B$Ke(B false e$B$rEO$;$J$$M}M3$OL5$$$H9M$($^$9!#e(B
e$B2<5-<BAu$,E,@Z$H9M$($^$9!#e(B

  •   elsif text and !text.kind_of? Text
    
  •   elsif !text.nil? and !text.kind_of? Text
    

e$B!t$"$A$3$A$K$"$k$N$G9THV9f$O>JN,$7$^$9!#e(B

REXML trac e$B$G%A%1%C%H@Z$i$l$F$$$k$+$O3NG’$G$-$F$$$^$;$s!#e(B
e$B!te(Btrac e$BMn$A$F$$$k$h$&$G$9!#e(B

e$BBP1~$h$m$7$/$*4j$$$7$^$9!#e(B