fix pushing to n-to-n in a embedded in doc will raise nil error when not assign parent

situation has described in #3019
when embedded in document not assign a parent, can return ```root_atomic_selector``` directly, there is no side-effect.