Clone document body for cache

Required if custom changePage event handler alters part of body not
replace whole body