ci: make the "skip-if-redundant" check more defensive