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
(cherry picked from commit 695662c1cf7714545a373573cb2787924ac53f52)