Fix crashes in UPnP during headless when requesting image:// video or music