[Bug 18664] New: Merging an application with itself causes all child objects to be deleted