When a textarea is removed from the DOM before the autocomplete clone-positioning logic runs, parentElement is null and MutationObserver.observe throws. This can happen when extensions abort generation early (via generate_interceptor) and the textarea is torn down before autocomplete finishes setup. Add a null check so the observer is only attached when the parent still exists. Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>