Avoid a possible infinite recursion if adding the page-style element to the tree fails