make sure _liveDocument exists
Merge pull request #5876 from adobe/randy/issue-5774

Make sure _liveDocument exists before dereferencing