fixed potential bug for cases where get_current_folder() == None

In rare cases, get_current_folder() returns None, which will prevent the FileDialogChooser() from running.