Fix crash when the next next sibling doesn't exist

e.g. https://github.com/moznion/gulp-tsd/blob/master/index.js when it's
attempting to link `require(path.resolve(file.path))`.