Fixed bug with Node._doInsertBefore

This may be related to https://github.com/therealglazou/dom4/issues/2