[LH2912] Adding custom metadata resets Outliner layout

To reproduce:

Open Outliner.
Change the column layout from the default.
If you have custom metadata, delete it.
The outliner’s state is now result to default (status, section type, etc). Additionally, the checkboxes for these are unchecked on the “Outliner columns” dropdown, so you have to click once to check and then again to uncheck to remove.
If you don’t have custom metadata, adding some will have the same effect.

This is a known bug reported multiple times. Thanks!