Fix crash when keyboard map changes and no keybindings exist.