[4935] Fixed replaceChild error on IE 11.

https://gist.github.com/8r2y5/4a82a22336f6ff58a209 - pylint & nosetest
https://bugzilla.stxnext.pl/show_bug.cgi?id=4935 - ticket