DROOLS-236: BZ-1000385: BZ-1000384: fixing serialization when TMS is dinamically enabled/disabled
(cherry picked from commit b3012f72c1548e1660c1446fdfbbc639be96db52)

Conflicts:

	drools-core/src/main/java/org/drools/marshalling/impl/ProtobufMessages.java
	drools-core/src/main/java/org/drools/marshalling/impl/ProtobufOutputMarshaller.java