MODE-1789

Execute `match()` not only when assertions are enabled