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().
Merge pull request #90 from adobe-photoshop/dk/reset-state

Reset the state before requesting the entire document