Fixed a bug where Invalid Path was shown when quitting an empty todo list