Don't assert or crash on an empty selection.