Fix bugs with dialog polyfill usage.
Fix bugs with dialog polyfill usage.

digitalbazaar/credentials-polyfill,digitalbazaar/credentials-polyfill,Spec-Ops/credentials-polyfill,Spec-Ops/credentials-polyfill