Get rid of annoying errors in exception.log

Check if the registry key is already there before trying to set it.