Output domReady errors through console.error, preserving the error
object and stack, fixes #17349