In CM, find the loco(s) that use the missing bogeys.
Right-click the loco and select Open-Edit Config.txt, or select Open-View In Explorer (I do this because sometimes the first option fails to bring up Notepad, and then I can use Notepad++).
Scroll through the config.txt file looking for the missing KUIDs.
Each one will be in two places. Each will be in one of the Bogey stanzas, replace them there with the substitute KUIDS (in this case, replace <kuid:338604:100190> with <kuid:359354:106463> and replace <kuid:338604:100191> with <kuid:359354:106462>).
Then scroll down to the KUID table at the bottom of the file and do the same replacements.
Save the config.txt file, then go back to CM, right click the loco (It will say Open for edit), and select Submit edits.
The loco should now be fine unless there are other errors with it.