Fixed incorrect exception thrown when startCol or startRow is 0.