Avoid overwriting content if exist. Solves rich text selections.

#5769