In sharded_agg_helpers.cpp when parsing explain results from remote shards, we first have an invariant that response have host and port and only after we check response status.
However, in some tricky network failures host and port may not be set, so we need to first check response status and after assert stuff.