[4935] Fixed replaceChild error on IE 11.