fix: prevent crash on async custom element attributes (#18661)