fix rtb_text_object_count_glyphs()