removeChild of table node if exists before appendChild