fixing get_network_states() to handle None network statuses