Textinput: Only _destroy() clear button when present

(cherry picked from commit c6ba792038a571f10c1f831227ebaa4d0de307b0)

Closes gh-7568
Fixes gh-7567