Fix error when building protobuf test

Review 1903 by @larkost