prevent segmentation fault when passing invalid arugment to protocolbufferrs\message::__construct