media_viewer: Fix potential overflow when loading media viewer
The media viewer could panic if you loaded it quickly after starting up the app when media_list.len() could return zero. Now the length of media_viewer is insured to be greater than zero before subtraction.