Add checking err for IsWindowsClient() Upstream-commit: 4554e6065100d493dd9cd2935901b8532a0dc504 Component: engine