[protocolbuffers\message] add hasExtension method