Prevent errors when dealing with updates to a document that has been closed
Merge pull request #152 from adobe-photoshop/dk/check-if-unknown

Check if unknown document first