BGO#665549: add sanity-check of atk_text_get_text parameters