window: Fix a crash when closing the window with the downloads bar open

Do not notify about window chrome changes when the window is closing.