fix deleted apps in lookup tool (bug 944010)