Transform stream to remove require calls from inside a catch{} statement