WICKET-4995 first acquire page to be rendered, then map url for
it so we don't have to re-render it afterwards if the url changes in
between (because of a pageId for a stateful page)