SSDP: Check that the peer address is available before doing the local network check.

Refs #12305

(cherry picked from commit d20c163ee82c38f9d8fe4652b7a811af61925de7)