LPS-44724 Create the root folder resource with the default value when it's necessary to avoid error due it doesn't exist

This is done because the portlets are not being added to the page, therefore the root resources are never created.