Run validation formulas on TemporaryDocument as well

Validation may still fail, but validation formulas have the chance to intervene.

Don't start to create a new `TemporaryDocument` if we're already busy with one. 
We can probably move to `getTemporaryDocument` everywhere.