Fix generating xml when no cdata was used in imported xml