result2pb: fix the wrong number of arguments check-ups (#2945)
result2pb: fix the wrong number of arguments check-ups (#2945)

Which would cause indexError exception in this case. Also, simply
the file I/O via with statement.

ApolloAuto/apollo,ApolloAuto/apollo,jinghaomiao/apollo,ycool/apollo,jinghaomiao/apollo,xiaoxq/apollo,jinghaomiao/apollo,xiaoxq/apollo,wanglei828/apollo,wanglei828/apollo,ycool/apollo,ApolloAuto/apollo,wanglei828/apollo,ApolloAuto/apollo,ycool/apollo,ApolloAuto/apollo,jinghaomiao/apollo,wanglei828/apollo,xiaoxq/apollo,ycool/apollo,ApolloAuto/apollo,ycool/apollo,xiaoxq/apollo,jinghaomiao/apollo,wanglei828/apollo,xiaoxq/apollo,ycool/apollo,xiaoxq/apollo,jinghaomiao/apollo,wanglei828/apollo