timetag_ui: Open output file before setting out_file_id

This was out_file_id won't be set if open fails