FIX: makes focus text area after complete more resilient (PR #9879)

GitHub