Fixed exception when only stderr is available.

Without checking if error is not null I got weird exceptions from node-pre-gyp itself, which caused my `npm install` to fail miserably.