[protocolbuffers] add error handling when getDescriptor returns unexpected result