Fix exception when random protos are combined with --predictions flag.