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))`.
Merge pull request #4 from Nemo157/fix-crash-no-nextSibling

Fix crash when the next next sibling doesn't exist