When the document model is detached, a call to #isCheckedOut throws a NullPointerException.
- need to protect this and make the error more explicit
- check if this information can be handled when the document is detached
- same for the lock information
When the document model is detached, a call to #isCheckedOut throws a NullPointerException.