Instead of performing keyboard layout substitution whenever we find a matching entry in the registry, first try to load the original layout and only attempt substitution when that fails. See #4724