Fix potential NPE in Cluster#connect

JAVA-274 #fixes