XE-1284: XWiki.ClassSheet allows guests to bind in memory an XClass to an existing sheet
* Make sure the sheet script service doesn't modify the cached document.
(cherry picked from commit 828d61d67553b91106c65fd4a576f3e9ef55c63b)