Update replace.js

Skip evaluating files that result in no matches.