Don't race. If you are ill enough to need cough or cold medicines in the week to ten days before a race, don't do it.
Nasty coughs and colds can put a strain on your heart even without the impact of the various chemicals that are put into the "remedies". There are thousands of half marathons every year so it's not as if this is a one-off event. There's only one of you though.....