UPnP is a configurable option, which means there's the possibility of showing settings in xbmc.debug which have no meaning if UPnP was disabled. Not sure how to proceed.