Check that document isn't undefined.
Check that document isn't undefined.

adobe-photoshop/generator-assets,PaladinStudiosBVs/generator-assets,PaladinStudiosBVs/generator-assets,adobe-photoshop/generator-assets