[JENKINS-23205]

This is to address https://issues.jenkins-ci.org/browse/JENKINS-23205
Prevent trying to get the disconnection cause as we pass in a null value.