check protobuf component before using

Change-Id: I458252dddb0e2d6ce716488fa92f4186216e32d9
Merge "check protobuf component before using" into 0.6.x