Only add to parentNode if it's set.