LPS-44833 Do not try to append content if the element does not exist