valid_runner.py: fix not_applicable logic