graphparser: simplify condition in avfilter_graph_parse()