Avoid a crash if no media are configured (from File/update media menu)
better patch to fix crash if no media is configured