Fix get_text_before/at/after_offset for elm_popup