Optimized updateStickyTableHead a little more