Moving onto next file if fs.statSync throws an error