[YoutubeDL] Fix bug in the detection of formats that don't contain video (fixes #4150)

If the format requested was not available, we called the method '.get' in None.