Fix crash when accessing non-exisiting UIBar-background on window-makeKeyAndVisible.