terraform: fix crash if outputs with no state [GH-358]