fix for bug918947, remove gear called on non-existent gear of an app