LPS-49873 Fix a NPE when adding a new basic document