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