Nullifying values, if "pattern" is set and empty.