fix: check whether oldDom
is present in the DOM
#4318
Merged
oldDom
is present in the DOM
#4318