NXP-11215 Avoid NPE when used with non persited DocumentModel