Protecting myself from null documents

It happens if you open a document from the .cope folder. Shouldn't
affect outside people, but better safe than sorry.