Fix additional document.domain editor edge cases

Refs #17529.

(cherry picked from commit 449ba49201567834201c1e16727ddc95ef35320f)