Windows: Don't crash on invalid parameter error.

Many crashes just give you `Assertion: Invalid parameter passed to library function (null) in function (null), in file (null)`.

Fixes the same bug as https://github.com/atom/atom-shell/issues/513