Bugfix: Working document can be closed even when working file does not exist anymore