Fix crash on startup on Windows with dock title bars hidden.