XWIKI-11037: Content goes blank when annotation are displayed on document bind with a sheet

(cherry-picked from master commit f6fabf63f844e8c56b970a90830142bf2819868b)