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.
Round 1 of fixes for failing tests (actually by Eberhard)
Try to get a failing test (only on TC) to pass for Windows build
Nuther try at fixing failing Windows test
Merge branch 'FlexBridgeBeta'