Save states taken before an M3U swap name the playlist itself, so the
playlist path stays known media even when its entries are opened as
separate images. Inserting checks that the selected index has an image:
index == count selects no disc, and an added slot stays empty until it
is replaced.
The disk suite in tests/run_tests.sh boots a two-entry M3U on its second
entry, swaps, loads the earlier state, then removes and re-adds entries.