Bug 993390 - Don't do a sync reflow if we just cleared the element

We do `innerHTML = ''` and then set the scrollTop and scrollLeft to 0, which forces a sync reflow. That is pretty redundant.