[[ Bug 11960 ]] Prevent crash with certain text selections