[PATCH OLK-6.6] trace/fgraph: Fix error handling