wireguard: fix passing null pointer