Fix handling of NULL pointer in NativeClient::rebalance_protocol
#417
+11
−6
NativeClient::rebalance_protocol
#417