fix for missing html element, see #4668. add try/catch to browser diff.