treeLevel in TSconfig conditions should consider the creation of new pages
The TSconfig condition [treeLevel = 2] counts the level of nestification in the pagetree. However, in the backend new pages could be created and the mentioned condition should consider that situation as well.
PIDupinRootline behaves similar in the backend.
(issue imported from #M12977)