Update cmfilter.py

re.search(pattern, string, flags=0) return None if no position in the string matches the pattern and 'bool(None) == False'