Don't crash on error response to UPnP query (fixes #226)