Fix some wrong namespace usages of the `Validator` class (see #6429)