Clone document fragments before rendering to string.