Avoid suspicious possible assertion only on windows systems.

Not clear, normally the additional condition should be useless, but it is not.