[GUPnP] Fix bug introduced in previous commit when managing error.

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>