Fix validator for dependency filters

fixes #7650