XD-603 Fix NPE in ModuleDeployer During Undeploy

NPE if an undeploy request is received and this container does
not have any modules deployed for the stream.

Also synchronize handleMessageInternal to protect concurrent
access to deployedModules.