fix #484 Safari nested <template> clone fail