Made datum_term_t check that it has a valid protobuf.