networkd: fix getting initial state

We were requesting the state and then ignoring it...
networkd: fix NULL pointer deref