Reorder changes in add_child to be correct.
auto merge of #1501 : Ms2ger/servo/add_child, r=jdm