Fix crash on orientation change when the dialog asking for preferred video
resolution is being shown.