Removed two possible null reference exceptions.
Some routers implement the various Port Mapping UPnP methods via the WANPPPConnection service. See UPnP.org spec here for more information: http://upnp.org/specs/gw/UPnP-gw-WANPPPConnection-v1-Service.pdf.