Reset the state before requesting the entire document
This allows an error in a layer name to contribute to the errors.txt even if the name was set before asset generation was enabled (only then we also generate errors.txt). It also better fits the idea of requestEntireDocument().