XWIKI-9183: Add New Page menu not shown to non-admin users
* Serialize the full reference because the new security module uses the default document reference resolver.
(cherry picked from commit 28e14d41b5c07a0578ba42e4053ad07b9a7f022e)