Fix nil pointer dereference in WaitForDeploymentToComplete
#4993
+2
−0
WaitForDeploymentToComplete
#4993