Fix for bug 952551

Preventing the removal of gears that host singletons through admin script