SERVER-15056 Sharded connection cleanup on setup error can crash mongos

Collapse empty if body
Merge remote-tracking branch 'upstream/master'