Only add dialog as descendant when not using polyfill.
Release 0.0.21.