XWIKI-9527: Sheets are not applied on preview action if the document is new
* Make sure programming rights are evaluated in preview mode based on the current user editing the document.