fix a possibility of a None type error in exclDictMatchCP