Fixed the issue with saving a blank new file (closes #290).