Fix crash if a split paragraph occurs with no text elements selected

Thanks Bella!