Fixing subtle bug in moving rows when header/footer is height 0.