Work around issue scrutinizer reported

Scrutinizer feedback:
"It seems like $match can also be of type string; however,
preg_match() does only seem to accept null|array<integer,string>,
maybe add an additional type check?"

It doesn't really matter what value it is; preg_replace will
just overwrite it with the matched values.

Let's just reset it to null before passing it in there.