opt: avoid segfault in av_opt_next() if the class does not have an option list