fomosto export: fixed an error occurring when some traces are empty