Fix crash

It seems that not all machines (at least Jenkins Windows build agent)
have HKCU\Keyboard Layout\Substitutes in which case hkl suddenly is null.
This change ensures that hkl always has a value.