Bug 891799 - Fix TypeError: runningApps[displayedApp] is undefined