This causes a NPE if save is invoked with no files open.  Need one more `!doc` check...