modules: check for a NULL resource in client-device and client-node

See pipewire/wireplumber#113
41 jobs for wip/check-null-resource in 5 minutes and 3 seconds (queued for 6 seconds)