Remove the unused window field from ValidityState.

It is only necessary if the ValidityState would create new objects, which it
doesn't.