NXP-12700: avoid crash when calling isCheckedOut on a d detached document model