I had this error only in Firefox and I tracked it down by looking in the call stack in the Firefox debugger, making sure it broke on caught exceptions. Then by walking up the Call Stack I could see it was trying to parse and audio element
Turned out the Firefox and html2canvas do not like the controls part of the audio element. Perhaps the browser generates some kind of non-standard CSS for the controls?