Fix append()
failing after mutating nodes through .parent
#1740
+48
−1
append()
failing after mutating nodes through .parent
#1740