Use non-null selection marks if possible.

The indentation code sometimes clobbers the last selection marks, but
most times the end mark is still valid. As it is the most useful of
the two, don't reset it to its former offset value but use it as is.

Work for #446.