33737: correction: assure the selections does not start/end inside a table while end/start of the selection is outside the table