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

Collapse empty if body