core: fix add of filter on OS X when regex for message is empty (filter regex ending with "\t")