Exit with 1 if no exit code at all

In case of `PhantomJS` crash `code` will be equal to `null` and will be converted to `0 (SUCCESS)` - so we need to exit with some error code in such case.