make assert_trace more resilient

empty trace in case of error