Draft: app: allow saving to file multiple times in Error console
This seems to be enough to fix #10828
The dialog was only opened as long as console->file_dialog did not exist, so set it to NULL in the end of the function to allow subsequent opening of the dialog.