Wrap stat call in try/catch to prevent crash when we encounter a bad symlink

There are apps in the market tarballs with bad symlinks. The call to fs.statSync throws an exception which needs to be caught, or ScanJS crashes.