Remove the unused window field from ValidityState.

It is only necessary if the ValidityState would create new objects, which it
doesn't.
Merge pull request #2829 from Ms2ger/validitystate-window

Remove the unused window field from ValidityState; r=Manishearth