BZ-1000055: added test for NPE during KieSession serialization
BZ-1000055: fixing NPE on RIANode serialization