Set correct end offset in atspi_text_get_attributes