command/format: be resilient to incomplete schema when formatting state
command/format: be resilient to incomplete schema when formatting state

In all real cases the schemas should be populated here, but we don't want
to panic in UI rendering code if there's a bug here.

This can also be tripped up by tests with incomplete mocks. It's
unfortunate that this can therefore mask some problems in tests, but tests
can protect against it by asserting on specific output text rather than
just assuming that a zero exit status is a pass.

rnaveiras/terraform,ewbankkit/terraform,apparentlymart/terraform,brandontosch/terraform,gechr/terraform,apparentlymart/terraform,iljaskevic/terraform,pdecat/terraform,apparentlymart/terraform,brandontosch/terraform,ewbankkit/terraform,apparentlymart/terraform,drebes/terraform,nlamirault/terraform,pradeepbhadani/terraform,pdecat/terraform,heimweh/terraform,iljaskevic/terraform,mattray/terraform,tommynsong/terraform,heimweh/terraform,tpounds/terraform,luis-silva/terraform,apparentlymart/terraform,youhong316/terraform,heimweh/terraform,youhong316/terraform,VladRassokhin/terraform,nlamirault/terraform,rnaveiras/terraform,youhong316/terraform,iljaskevic/terraform,ewbankkit/terraform,heimweh/terraform,VladRassokhin/terraform,drebes/terraform,gechr/terraform,pradeepbhadani/terraform,rnaveiras/terraform,luis-silva/terraform,VladRassokhin/terraform,ewbankkit/terraform,drebes/terraform,tommynsong/terraform,nlamirault/terraform,pdecat/terraform,mattray/terraform,luis-silva/terraform,pryorda/terraform,brandontosch/terraform,gechr/terraform,pryorda/terraform,tpounds/terraform,heimweh/terraform,hashicorp/terraform,hashicorp/terraform,pradeepbhadani/terraform,youhong316/terraform,mattray/terraform,pryorda/terraform,VladRassokhin/terraform,pdecat/terraform,hashicorp/terraform,tpounds/terraform,tommynsong/terraform,brandontosch/terraform,iljaskevic/terraform,mattray/terraform,tpounds/terraform,brandontosch/terraform,drebes/terraform,luis-silva/terraform