fix crash on invalid NWS data