[Sched-tools] [PATCH] Do not use json-c's is_error() any more