Fix for null ref crash on trying to parse error messages.

Quick fix for a few null ref crashes I've been getting when trying to parse error messages from the UPnP device.

P.S. Is this repo still maintained? I intend to start using it fairly extensively.