Steps to Reproduce
1. Add "dl.file.entry.drafts.enabled=true" to the portal-ext.properties
2. Add a new basic document
3. Edit the document and choose "Save as Draft"
4. Click on the document to view it
5. Assert NullPointerException thrown
Note: This does not affect Master as it is fixed as part of
LPS-49778. This ticket is to track the partial backport to resolve the NPE.