Added check in Tree.cpp DocumentItem::slotChangeObject to check for invalid pointers returned by claimChildren()