Shortcircuit DOM elements in safeStringify.