ISPN-4867 Reset server marshaller when undeployed

* Marshaller needs to be reset when undeployed to avoid CNFE exceptions
in tests running after.
* If passing null marshaller, reset the default marshaller for remote
event marshalling.