Fixed uninitialized protbuf segfault issue.