Bug 844990 - Remove race condition cause by bug 842627 on setting
displayedApp in Window Manager
(cherry picked from commit b954a366ae0cb90bc6c5b8af4d83c064374d3c0e)

Conflicts:
	apps/system/js/window_manager.js