CLOUDIFY-2084 Fixed NPE in stateless/stateful PUs.