Add LOGCONDITIONAL protection around RegisterLanguage and