Fix debug assertion when clicking on hot key menu. (fixes lp:1389932)