Issue XWIKI-10242. Incorrect implementation of xwiki.getDefaultPage().