(NodeImp::insertBefore) : Fix bugs in 0c895cbe