Added code to detect orphaned child documents.