[TIMOB-11568] requiring wrench in localMode.js and fixing failSilent bei...

...ng undefined